package com.yc4.jdbcTemplate;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @ClassName RowMapper
 * @since: 2023/7/26 21:12
 * @auth: kirito
 * @description:
 **/
public interface RowMapper<T> {
    /**
     * 对第i行的ResultSet 转换成T对象  这个具体由用户实现
     * @param rs
     * @param i
     * @return
     * @throws SQLException
     */
    public T mapper(ResultSet rs, int i)throws SQLException;
}
